package com.szxy.lambda;

import java.util.Date;

/**
 * @Author:zwer
 * @Date:2020/4/14 22:01
 * @Description:com.szxy.lambda
 * @Version:1.0
 **/
public class SAMImpl{

    private SAM sam ;

    public SAMImpl(SAM sam) {
       this.sam = sam;
    }

    public void start() {
        sam.hello();
    }

    /**
     * 测试
     * @param args
     */
    public static void main(String[] args) {
        new SAMImpl(() -> System.out.println("有趣")).start();
        Date date = new Date();
        System.out.println("date.getDate() = " + date.getDate());
    }
}
